CC = g++
SRC_FILES := $(wildcard **/*.cpp , *.cpp)
INC_FOLDERS := -I State -I .
TARGET := StateMode
FLAGS := -std=c++17 -s -fexec-charset=GBK -finput-charset=UTF-8 -static

.IPONY : msvc gcc

gcc : $(SRC_FILES)
	$(CC) $(INC_FOLDERS) $(SRC_FILES) -o $(TARGET)-gcc $(FLAGS)

msvc : 
	cl /Fe$(TARGET)-msvc /I State /I . /std:c++17 $(SRC_FILES) /source-charset:UTF-8 /execution-charset:GBK /Os
